# def print_prime(n):
#     for i in range(2, n):
#         for j in range(2, i):
#             if i % j == 0:
#                 break
#         else:
#             print(f'{i}是质数')
#
#
# print_prime(20)


# 数据库的save函数

# def save(db, obj):
#     try:
#         db.execute('a sql stmt', obj.attr1)
#         db.execute('another sql stmt', obj.attr1)
#     except DBError:
#         db.rollback()
#     else:
#         db.commit()

print(10/0)